# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
pkgname=s6-overlay-helpers
pkgver=0.1.1.0
pkgrel=0
pkgdesc="Binary helpers for s6-overlay"
url=https://github.com/just-containers/s6-overlay-helpers
arch="all"
license="ISC"
_skalibs_version=2.14.3
_execline_version=2.9.6
makedepends="skalibs-dev>=$_skalibs_version execline-dev>=$_execline_version"
source="$pkgname-$pkgver.tar.gz::https://github.com/just-containers/s6-overlay-helpers/archive/refs/tags/v$pkgver.tar.gz"

# s6-overlay-suexec is suid root.
# That's okay: it's only runnable as pid 1. (For use in USER containers.)
options="!check suid"

build() {
	./configure \
		--prefix=/usr \
		--enable-shared \
		--disable-allstatic \
		--libexecdir="/usr/lib/$pkgname"
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
93312f7758c404517671fa44dc32f9b9b94c17af29a06986507c25553de3b3678da67bc83ce2a37d506400719960d2615cb6e4c3e24943e40e0fc47e26a72c8f  s6-overlay-helpers-0.1.1.0.tar.gz
"
